package com.cungmua.app.model.response;

import com.cungmua.app.model.PastDeal;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by kelvin.nguyen on 6/25/14.
 */
public class PastDealResponse extends CungMuaResponse {
    private List<PastDeal> data;
    private Pager pager;

    public PastDealResponse(@JsonProperty("Msg") String message, @JsonProperty("Code") int code) {
        super(message, code);
    }

    public Pager getPager() {
        return pager;
    }

    @JsonProperty("Pager")
    public void setPager(Pager pager) {
        this.pager = pager;
    }

    @JsonProperty("Data")
    public void setData(List<PastDeal> data) {
        this.data = data;
    }

    @Override
    public List<PastDeal> getData() {
        return data;
    }
}
